﻿<div class="detail-header"></div>
<div class="detail-content bdbs"></div>
<div class="detail-comment"></div>
<div class="detail-reviewer"></div>
<script type="text/template" id="detail_header_tpl">
    <div class="mc-header">
        <div class="mc-header-info clearfix">
            <div class="mc-overview pull-right">
                <ul class="mc-overview-list">
                    <li class="po-rp-clock">
                        提交时间：<%= data.createtime %> <%= data.week %>
                    </li>
                </ul>
            </div>
            <div class="usi-terse">
                <a href="<%= data.user.space_url %>" class="avatar-box">
                    <span class="avatar-circle">
                        <img class="mbm" src="<%= data.user.avatar_small %>" alt="">
                    </span>
                </a>
                <span class="usi-terse-user"><%= data.user.text %></span>
                <span class="usi-terse-group"><%= data.user.deptname %></span>
            </div>
        </div>
    </div>
    <div class="page-list">
        <div class="page-list-header">
            <% if(data.isdel){ %>
            <div class="btn-toolbar pull-left">
                <a href="#edit/<%= data.repid %>" class="btn">编辑</a>
                <a href="javascript:;" class="btn" data-param="{&quot;id&quot;: &quot;<%= data.repid %>&quot;}" data-click="removeReport">删除</a>
            </div>
            <% } %>
            <div class="btn-group pull-right">
                <% if( data.prev ){ %>
                <a href="#<%= data.type %>/detail/<%= data.prev %>" class="btn">
                <% }else{ %>
                <a href="javascript:;" class="btn disabled">
                <% } %>
                    <i class="glyphicon-chevron-left"></i>
                </a>
                <% if( data.next ){ %>
                <a href="#<%= data.type %>/detail/<%= data.next %>" class="btn">
                <% }else{ %>
                <a href="javascript:;" class="btn disabled">
                <% } %>
                    <i class="glyphicon-chevron-right"></i>
                </a>
            </div>
        </div>
        <div class="page-list-mainer posr">
            <%= content %>
        </div>
    </div>
</script>
<script type="text/template" id="detail_list_header_tpl">
    <div class="mc-header">
        <div class="rp-detail-header curp clearfix" data-click="hideReportDetail">
             <div class="mini-date fill-ss pull-left">
                <a href="javascript:;" class="avatar-circle" title="<%= data.user.text %>">
                    <img src="<%= data.user.avatar_small %>">
                </a>
                <span><%= data.user.text %></span>
             </div>
             <div class="rp-detail-time pull-right">
                 <i class="o-rp-clock"></i>
                 <span>提交时间：<%= data.createtime %> <%= data.week %></span>
             </div>
         </div>
    </div>
    <div class="page-list">
        <div class="page-list-mainer posr">
            <%= content %>
        </div>
    </div>
</script>
<script type="text/template" id="detail_content_tpl">
    <div class="rp-stamp">
        <span id="preview_stamp_<%= repid %>">
            <% if( stamp ){ %>
            <img id="stamp_<%= repid %>" src="<%= stamp %>" width="150px" height="90px">
            <% } %>
        </span>
    </div>
    <div class="report-detail fill">
        <h2 class="xac xcm ellipsis" title="<%= subject %>"><%= subject %></h2>
        <% for(var i=0; i<record.length; i++){ %>
            <p class="xcn mts"><%= U.entity.escape(record[i].fieldname) %></p>
            <div class="xcm lhl mb text-break"><%= record[i].content %></div>
        <% } %>
        <% if(remark){ %>
        <p class="xcn mts">备注</p>
        <div class="xcm lhl mb text-break"><%= remark %></div>
        <% } %>

        <% if(place){ %>
        <p class="xcn mts"><i class="o-rp-location"></i><strong class="mlm">位置</strong></p>
        <p class="xcm lhl mb ml"><%= place %></p>
        <% } %>

        <% if(attachmentid){ %>
        <div class="noprint">
            <h3 class="ctbt">
                <i class="o-paperclip"></i>
                <strong>附件</strong>（<%= attach.length %>个）
            </h3>
            <ul class="attl">
                <% for(var i=0; i<attach.length; i++){ %>
                <li>
                    <i class="atti"><img src="<%= attach[i].iconsmall %>" alt="<%= attach[i].filename %>"></i>
                    <div class="attc">
                        <div>
                            <%= attach[i].filename %><span class="tcm">(<%= attach[i].filesize %>)</span>
                        </div>
                        <span class="fss">
                            <a href="<%= attach[i].downurl %>" target="_blank">下载</a>&nbsp;&nbsp;
                            <a href="javascript:;" data-action="viewOfficeFile" data-param="{&quot;href&quot;: &quot;<%= attach[i].officereadurl %>&quot;}" title="查阅">查阅</a>
                        </span>
                    </div>
                </li>
                <% } %>
            </ul>
        </div>
        <% } %> 
        <% if(receiver){ %>
        <p class="xcn mts"><i class="o-rp-report"></i><strong class="mlm">汇报给</strong></p>
        <p class="xcm lhl mb ml"><%= receiver %></p>
        <% } %>
    </div>
</script>
<script type="text/template" id="detail_comment_tpl">
<!--点评-->
<div class="cti bdbs">
    <h4>
        点评
    </h4>
    <div id="report_comment" data-url="/?r=message/comment/getcomment">
        <%= content %>
    </div>
</div>
</script>
<script type="text/template" id="detail_review_tpl">
<!--阅读人员-->
<div class="cti">
    <h4>
        阅读人员
    </h4>
    <div>
        <div class="rp-reviews-count">
            查阅
            <strong><%= data.length %></strong>
            人
        </div>
        <div class="rp-reviews-avatar clearfix">
            <% for(var i=0, len= data.length; i<len; i++){ %>
            <div class="rp-reviews-user">
                <a href="<%= data[i].space_url %>">
                    <img src="<%= data[i].avatar_small %>" title="<%= data[i].realname %>" class="img-rounded">
                    <p><%= data[i].realname %></p>
                </a>
            </div>
            <% } %>
        </div>
    </div>
</div>
<div class="rp-detail-ft">
    <a href="javascript:;" class="rp-mark-up" data-click="hideReportDetail"></a>
</div>
</script>